package cn.paul.wechatshop.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author 徐凌峰
 * @date 2017/12/23 0023
 */
@Data
public class OrderForm {
    @NotBlank(message = "姓名必须填写")

    private String buyerName;
    @NotBlank(message = "手机必须填写")

    private String buyerPhone;
    @NotBlank(message = "地址必须填写")

    private String buyerAddress;
    /**
     * 微信ID
     */
    @NotBlank(message = "openid必须填写")
    private String buyerOpenid;
    @NotBlank(message = "购物车不能为空")
    private String items;
}



